package com.yjd.bi.user.service;

import com.yjd.bi.report.model.EChartsModel;
import com.yjd.bi.user.model.UserStatisticsRealTimeModel;
import com.yjd.comm.base.service.IBaseService;

/**
 * <b>description</b>：用户数实时统计业务接口<br>
 * <b>time</b>：2016-04-19 14:35:36 <br>
 * <b>author</b>：  renbangjie renbangjie@126.com
 */
public interface IUserStatisticsRealTimeService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public UserStatisticsRealTimeModel insert(UserStatisticsRealTimeModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(UserStatisticsRealTimeModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	
	
	/**
	 * 根据日期获取时段数据
	 * 
	 * @param day
	 * @param field
	 * @return
	 * @throws Exception
	 */
	public EChartsModel getDates(Long day, String field) throws Exception;

}
